#!/bin/bash
cd /opt/gitee/spider-flow
pwd
git reset --hard
git pull

mvn clean compile
#让内部项目找到
mvn install
mvn package

cp /opt/gitee/spider-flow/spider-flow-web/target/spider-flow-web-0.5.0.jar  /opt/gitee/spider-flow/
cp /opt/gitee/spider-flow/spider-flow-web/target/spider-flow.jar  /opt/gitee/spider-flow/

chmod 777 /opt/gitee/spider-flow/*.sh